package com.computer.spring.framework.core;

/**
 * @Description
 * @Author MagicIce
 * @Date 2020/11/21 11:15
 */
public interface BYBeanFactory {

    /**
     * 根据 beanName 从 IoC容器中获取实例 Bean
     * @param beanName
     * @return
     * @throws Exception
     */
    Object getBean(String beanName) throws Exception;

    /**
     * 根据 beanClass 获取 Bean 对象
     * @param beanClass
     * @return
     * @throws Exception
     */
    public Object getBean(Class<?> beanClass) throws Exception;
}
